//
//  ZDQAboutMainViewController.m
//  Alltelevisionnews
//
//  Created by dllo on 15/12/3.
//  Copyright © 2015年 三人行. All rights reserved.
//

#import "ZDQAboutMainViewController.h"

@interface ZDQAboutMainViewController ()

@property(nonatomic, strong)UIImageView *myImage;
@property(nonatomic, strong)UIImageView *bjImage;

@end

@implementation ZDQAboutMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view.
    
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.bjImage = [[UIImageView alloc] init];
    [self.view addSubview:self.bjImage];
    self.bjImage.image = [UIImage imageNamed:@"123.jpg"];
    [self.bjImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.equalTo(self.view);
        make.height.equalTo(self.view);
    }];
    
    self.myImage = [[UIImageView alloc] init];
    [self.bjImage addSubview:self.myImage];
    self.myImage.image = [UIImage imageNamed:@"women.jpg"];
    [self.myImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).with.offset(20);
        make.left.equalTo(self.view).with.offset(85);
        make.right.equalTo(self.view).with.offset(-85);
        make.height.equalTo(self.view.mas_height).with.offset(-KHEIGHT / 3 * 2);
    }];
    
    self.title = @"关于我们";
    [self createData];
}

- (void)createData {
    UILabel *myLabel = [[UILabel alloc] init];
    myLabel.backgroundColor = [UIColor clearColor];
    [self.view addSubview:myLabel];
//    myLabel.layer.borderWidth = 1;
    [myLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(self.myImage.mas_bottom).with.offset(10);
        make.left.equalTo(self.view).with.offset(20);
        make.right.equalTo(self.view).with.offset(-20);
        make.height.mas_equalTo(200 * KHEIGHT / 667 - 10);
    }];
    
    myLabel.text = @"        都视新闻是一款集视频娱乐新闻等新闻于一身的APP,拥有它可以使你足不出户遍知天下.这里有你想要的最新资讯和报道.\n        看新闻:还看都视新闻!!!\n        由张冬青,张树林, 曹林,王钰制作.";
    myLabel.textAlignment = NSTextAlignmentLeft;
    myLabel.font = [UIFont systemFontOfSize:18];
    myLabel.numberOfLines = 0;
    [myLabel sizeToFit];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
